package com.aurora.oa.work.view;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import com.aurora.oa.R;
import com.aurora.oa.activity.BaseActivity;

/**
 * Created by Administrator on 2017/5/5 0005.
 */
public class FileDetailActivity extends BaseActivity{
    WebView webView;
    String fileUrl;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initTitlebar(true,"文件详情",true);
        fileUrl = getIntent().getStringExtra("url");
        setMyContentView(R.layout.activity_file_detail);
        webView = (WebView) findViewById(R.id.webView);
        WebSettings webSettings = webView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        webView.setWebViewClient(new WebViewClient());
        webView.loadUrl(fileUrl);
       // webView.loadDataWithBaseURL(fileUrl, null, "text/html", "utf-8", null);
    }
}
